#include "contiki.h"
#include "shell.h"

#include "collect-common.h"
#include "trickle-ipv6.h"

#include <stdio.h>

/*---------------------------------------------------------------------------*/
PROCESS(shell_ipv6_start_collect_process, "start ipv6 collect");
SHELL_COMMAND(start_ipv6_collect_command,
	      "collect",
	      "collect: Starts ipv6 collect",
	      &shell_ipv6_start_collect_process);
/*---------------------------------------------------------------------------*/
PROCESS_THREAD(shell_ipv6_start_collect_process, ev, data)
{

  PROCESS_BEGIN();

  collect_common_start();
  trickle_ipv6_send();
  printf("start collect \n");



  PROCESS_END();
}
/*---------------------------------------------------------------------------*/
void
shell_ipv6_start_collect_init(void)
{
  shell_register_command(&start_ipv6_collect_command);
}
/*---------------------------------------------------------------------------*/
